package com.example.helloandroid;


import android.app.TabActivity;
import android.os.Bundle;
import android.widget.TabHost;

public class HelloAndroid extends TabActivity {
    private TabHost mTabHost;

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mTabHost = getTabHost();
        
        mTabHost.addTab(mTabHost.newTabSpec("tab_test1").setIndicator("Artists").setContent(R.id.textview1));
        mTabHost.addTab(mTabHost.newTabSpec("tab_test2").setIndicator("Albums").setContent(R.id.textview2));
        mTabHost.addTab(mTabHost.newTabSpec("tab_test3").setIndicator("Songs").setContent(R.id.textview3));
        mTabHost.addTab(mTabHost.newTabSpec("tab_test4").setIndicator("Playlists").setContent(R.id.textview4));
        mTabHost.addTab(mTabHost.newTabSpec("tab_test5").setIndicator("Now Playing").setContent(R.id.textview5));
        
        mTabHost.setCurrentTab(0);
    }
}